package com.anzhen.interview.xml.study;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by anzhen on 2017-4-27.
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Person_3 {
	@XmlAttribute
	private String id="121";
	@XmlElement
	private String name="anzhen";

	//这个无参构造器是必须的
	public Person_3(){}

	public Person_3(String id, String name){
		this.name = name;
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}